<script>
    import { post } from 'tlp';

    async function uploadFile() {
        const form_data = new FormData(document.getElementById('project-admin-user-import-form'));
        const response  = await post('userimport.php', {
            body: form_data
        });

        const json = await response.json();

        renderImportPreview(json);
    }
</script>
